/**
 * Create by yxk at 2020/6/23
 */

export default {
  data() {
    return {
      examineTypes: [
        'jxc_purchase',
        'jxc_retreat',
        'jxc_sale',
        'jxc_salereturn',
        'jxc_payment',
        'jxc_collection',
        'jxc_inventory',
        'jxc_allocation'
      ],
      examineInfo: {}
    }
  },
  computed: {
    showExamine() {
      if (!this.examineTypes.includes(this.type)) return false
      if (this.examineInfo) {
        return this.examineInfo.status !== 0
      }
      return false
    }
  },
  methods: {
    handleExamineInfo(data) {
      this.examineInfo = data
    }
  }
}
